package com.mapull.compare;

import java.util.Comparator;

/**
 * @author mapull
 */
public class AnimalComparator implements Comparator<Animal> {
    @Override
    public int compare(Animal o1, Animal o2) {
        return o1.getWeight() - o2.getWeight();
    }
}
